package edu.jd.movieplatform.admin.a_feedback;

import edu.jd.movieplatform.common.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;


@RestController
@RequestMapping("/admin/a_feedback")
public class a_FeedbackAPI {
    @Resource
    private a_FeedbackService a_feedbackService;

    @GetMapping("")
    public Result a_feedbackList(a_FeedbackDto dto) {
        Map<String, Object> page = a_feedbackService.geta_FeedbackList(dto);
        return Result.success(page);
    }

    @PutMapping("")
    public Result feedbackUpd(@RequestBody a_FeedbackDto dto){
        a_feedbackService.updFeedback(dto);
        return Result.success();
    }
}
